﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace jlynet.core.notebook.model
{
    /// <summary>
    /// 目录数据表(基础表数据不变更，可再基础树状下新增子树)
    /// </summary>
    public class DirectoryDataTableModel : BaseModel
    {
        private string pidField;
        private string nameField;
        private string typeField;

        private bool isEditField;
        private EntryDataTableModel entryDataTableModelField = new EntryDataTableModel();

        /// <summary>
        /// 目录父级id
        /// </summary>
        public string pid
        {
            get
            {
                return this.pidField;
            }
            set
            {
                this.pidField = value;
            }
        }

        /// <summary>
        /// 目录名称
        /// </summary>
        public string name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }

        /// <summary>
        /// 目录类型
        /// </summary>
        public string type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }

        /// <summary>
        /// 是否编辑
        /// </summary>
        public bool isEdit
        {
            get
            {
                return this.isEditField;
            }
            set
            {
                this.isEditField = value;
            }
        }

        /// <summary>
        /// 条目数据表
        /// </summary>
        public EntryDataTableModel entryDataTableModel
        {
            get
            {
                return this.entryDataTableModelField;
            }
            set
            {
                this.entryDataTableModelField = value;
            }
        }

    }
}
